<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		
		
		<!-- <table border="" cellspacing="" cellpadding="">
			<tr>
				<th>编码</th>
				<th>姓名</th>
				<th>年龄</th>
			</tr>
			<tr>
				<td>1</td>
				<td>张三</td>
				<td>20</td>
			</tr>
			<tr>
				<td>2</td>
				<td>李四</td>
				<td>21</td>
			</tr>
		</table> -->
		
		
		<!-- <div id="">
			<p>年龄20岁</p>
			<p>名字叫张三</p>
			<p>身高180cm</p>
			<p>今天没有下雨</p>
		</div> -->
		
		<script type="text/javascript">
			//1.
			alert("大家好:")
			alert("我是曾田")
			
			//2.
			document.write(
			`
			<table border="" cellspacing="" cellpadding="">
				<tr>
					<th>编码</th>
					<th>姓名</th>
					<th>年龄</th>
				</tr>
				<tr>
					<td>1</td>
					<td>张三</td>
					<td>20</td>
				</tr>
				<tr>
					<td>2</td>
					<td>李四</td>
					<td>21</td>
				</tr>
			</table>
			`)
			
			//3.
			var name = "曾田";
			var address = "河南";
			var age = 18;
			console.log("我是"+name);
			console.log("我是"+address+"人");
			console.log("我今年"+age+"岁");
			
			
			//4.
			
			var name = "张三";
			var age = 20;
			var heighter = "180cm";
			var x = "今天没有下雨";
			document.write("姓名是"+name+"</br>");
			document.write("今年"+age+"岁"+"</br>");
			document.write("身高"+heighter+"</br>");
			document.write(x);
			/* document.write(
			`
			<div id="">
				<p>年龄20岁</p>
				<p>名字叫张三</p>
				<p>身高180cm</p>
				<p>今天没有下雨</p>
			</div>
			`) */
			
			
			//5.
			var x = 10;
			var y = 20;
			var z = x ;
			x = y;
			y = z;
			console.log("x:",x)
			console.log("y:",y)
			
			//6.
			var day = 50;
			var week = Math.floor(50/7);
			var sday = 50%7;
			console.log("已知总天数为50天","，共有"+week+"周，并剩余"+sday+"天")
			
			
			//7.
			
			
			
			
			
			
			
		</script>
		
		
		
	</body>
</html>
